package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the colle database table.
 * 
 */
@Entity
@NamedQuery(name="Colle.findAll", query="SELECT c FROM Colle c")
public class Colle implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="col_id")
	private int colId;

	@Column(name="col_company")
	private String colCompany;

	@Column(name="col_content")
	private String colContent;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="col_date")
	private Date colDate;

	@Column(name="col_from")
	private String colFrom;

	@Column(name="col_linkman")
	private String colLinkman;

	@Column(name="col_phone")
	private String colPhone;

	@Column(name="col_remark")
	private String colRemark;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="col_classify")
	private Dictionary dictionary1;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="col_state")
	private Dictionary dictionary2;

	//bi-directional many-to-one association to FormsDetail
	@ManyToOne
	@JoinColumn(name="fordetails_id")
	private FormsDetail formsDetail;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="use_id")
	private User user;
	
	

	@Override
	public String toString() {
		return "Colle [colId=" + colId + ", colCompany=" + colCompany + ", colContent=" + colContent + ", colDate="
				+ colDate + ", colFrom=" + colFrom + ", colLinkman=" + colLinkman + ", colPhone=" + colPhone
				+ ", colRemark=" + colRemark + "]";
	}

	public Colle() {
	}

	public int getColId() {
		return this.colId;
	}

	public void setColId(int colId) {
		this.colId = colId;
	}

	public String getColCompany() {
		return this.colCompany;
	}

	public void setColCompany(String colCompany) {
		this.colCompany = colCompany;
	}

	public String getColContent() {
		return this.colContent;
	}

	public void setColContent(String colContent) {
		this.colContent = colContent;
	}

	public Date getColDate() {
		return this.colDate;
	}

	public void setColDate(Date colDate) {
		this.colDate = colDate;
	}

	public String getColFrom() {
		return this.colFrom;
	}

	public void setColFrom(String colFrom) {
		this.colFrom = colFrom;
	}

	public String getColLinkman() {
		return this.colLinkman;
	}

	public void setColLinkman(String colLinkman) {
		this.colLinkman = colLinkman;
	}

	public String getColPhone() {
		return this.colPhone;
	}

	public void setColPhone(String colPhone) {
		this.colPhone = colPhone;
	}

	public String getColRemark() {
		return this.colRemark;
	}

	public void setColRemark(String colRemark) {
		this.colRemark = colRemark;
	}

	public Dictionary getDictionary1() {
		return this.dictionary1;
	}

	public void setDictionary1(Dictionary dictionary1) {
		this.dictionary1 = dictionary1;
	}

	public Dictionary getDictionary2() {
		return this.dictionary2;
	}

	public void setDictionary2(Dictionary dictionary2) {
		this.dictionary2 = dictionary2;
	}

	public FormsDetail getFormsDetail() {
		return this.formsDetail;
	}

	public void setFormsDetail(FormsDetail formsDetail) {
		this.formsDetail = formsDetail;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}